home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Network LegalNotice.xpl
< prev
next >
Wrap
Text File
|
1999-06-13
|
2KB
|
82 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="1"
"COUNT"="2"
"UIPATH"="Network\Login\Login Window"
"NAME"="Legal Notice"
"VERSION"="1.51"
"LANGUAGE"="VBScript"
"TEXT 1"="Message Title"
"TEXT 2"="Message Text"
"DESCRIPTION 1"="You can configure a message that is displayed before a user is able to logon to this machine."
"DESCRIPTION 2"="This message is normally used for legal notices or something similar."
"DESCRIPTION 3"="Note that both fields have to contain a value, otherwise the message will not be displayed!"
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
"COMMENT 2"="(Windows 95 Support by StaSys)"
sP=""
bOK=false
v1="LegalNoticeCaption"
v2="LegalNoticeText"
Sub Plugin_Initialize
sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
if RegPathExists(sp) then
'Windows NT
bOK=true
else
'Windows 95?
sP="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WinLogon\"
if RegPathExists(sp) then
bOK=true
else
bOK=false
end if
end if
if bOK=true then
s=RegReadValue(sp&v1)
Call SetUIElement(1,s)
s=RegReadValue(sp&v2)
Call SetUIElement(2,s)
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s1=GetUIElement(1)
s2=GetUIElement(2)
if Len(s1)>0 and Len(s2)>0 then
Call RegWriteValue(sp&v1,s1,1)
Call RegWriteValue(sp&v2,s2,1)
Call Restart
else
if Len(s1)=0 and Len(s2)=0 then
s=RegReadValue(sp&v1)
if IsEmpty(s)=false then Call RegDeleteValue(sp&v1)
s=RegReadValue(sp&v2)
if IsEmpty(s)=false then Call RegDeleteValue(sp&v2)
Call Logoff
else
Call MsgError("Please enter a text in both fields, otherwise the message will not be displayed.")
end if
end if
End Sub
Sub Plugin_Terminate
End Sub